package models

import "github.com/smash-llj/Nexa-server/global"

type AIMessageSession struct {
	global.BaseModal
	Title     string      `json:"title"`
	UserId    uint        `json:"userId" gorm:"not null"`
	SessionId string      `json:"sessionId" gorm:"index"`
	Status    int         `json:"status" gorm:"not null;default:1"` // 0为 删除 //1 存在
	Messages  []AIMessage `json:"messages" gorm:"foreignkey:SessionId;references:SessionId"`
}
